<template>
  <div class="food-list">
    <list-item v-for="item of foodDatas"
      :key="item.id"
      :data="item"
    ></list-item>
  </div>
</template>

<script>
import ListItem from './Sub.vue'
export default {
  name: 'FoodList',
  components: {
    ListItem
  },
  props: {
    foodDatas: {
      type: Array,
      default () {
        return [];
      }
    }

  }
}
</script>

<style lang="scss" scoped>
.food-list {
  box-sizing: border-box;
  
}
</style>